import axios from 'axios'

export default function request(config) {
  const ajax = axios.create({
    baseURL: 'http://152.136.185.210:7878/api/m5',
    timeout: 5000
  })

  ajax.interceptors.response.use(
    response => {
      return response.data
    },
    error => {
      return error
    }
  )

  return ajax(config)
}
